package com.mob.commons.logcollector;

import android.content.Context;
import com.mob.tools.utils.SharePrefrenceHelper;

public class d
{
  private static d a;
  private SharePrefrenceHelper b;

  private d(Context paramContext)
  {
    this.b = new SharePrefrenceHelper(paramContext.getApplicationContext());
    this.b.open("mob_sdk_exception", 1);
  }

  public static d a(Context paramContext)
  {
    if (a == null)
      a = new d(paramContext);
    return a;
  }

  public long a()
  {
    return this.b.getLong("service_time");
  }

  public void a(int paramInt)
  {
    this.b.putInt("is_upload_crash", Integer.valueOf(paramInt));
  }

  public void a(long paramLong)
  {
    this.b.putLong("service_time", Long.valueOf(paramLong));
  }

  public void a(String paramString)
  {
    this.b.putString("err_log_filter", paramString);
  }

  public void a(boolean paramBoolean)
  {
    SharePrefrenceHelper localSharePrefrenceHelper = this.b;
    if (paramBoolean);
    for (int i = 0; ; i = 1)
    {
      localSharePrefrenceHelper.putInt("is_upload_err_log", Integer.valueOf(i));
      return;
    }
  }

  public void b(int paramInt)
  {
    this.b.putInt("is_upload_sdkerr", Integer.valueOf(paramInt));
  }

  public boolean b()
  {
    return this.b.getInt("is_upload_err_log") == 0;
  }

  public int c()
  {
    return this.b.getInt("is_upload_crash");
  }

  public void c(int paramInt)
  {
    this.b.putInt("is_upload_apperr", Integer.valueOf(paramInt));
  }

  public int d()
  {
    return this.b.getInt("is_upload_sdkerr");
  }

  public int e()
  {
    return this.b.getInt("is_upload_apperr");
  }

  public String f()
  {
    return this.b.getString("err_log_filter");
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.mob.commons.logcollector.d
 * JD-Core Version:    0.6.2
 */